import Vue from 'vue'
import VueRouter from 'vue-router'

const routes = [
  {
    path: '/home',
    component: () => import('../views/home.vue')
  },
  {
    path: '/about',
    component: () => import('../views/about.vue')
  }
]

const router = new VueRouter({
  routes,
  mode: 'history',
  base: '/microapp/vue2app'
})

Vue.use(VueRouter);

export default router